package com.matrix.java.chap_03.example;

import java.util.Scanner;

/**
 * 判断闰年
 */
public class Case3_07 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("输入: ");
        int year = input.nextInt();
        if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) {
            System.out.println("run");
        } else {
            System.out.println("not run");
        }
        input.close();
    }
}
